<?php
session_start();

//注销登录
if($_GET['action'] == "logout"){
    unset($_SESSION['username']);
    echo '<script>alert("退出成功,关闭进入登录！！！");</script>';
    echo '<script>window.location="../login.html";</script>';
    exit;
}
?>